<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="UTF-8">
<title>考勤月表</title>
</head>
<div th:fragment="realmonthtable">
<body>
<table class="table table-striped table-hover table-bordered table-responsive">
			
				<tr>
					<th>部门</th>
					<th>成员</th>
					<th>正常</th>
					<th>迟到</th>
					<th>早退</th>
					<th>请假</th>
					<th>出差</th>
					<th>旷工</th>
				</tr>
				<tr th:each="monthList:${monthList}">
					<td th:text="${monthList.aoaDept.deptName}" ></td>
					<td th:text="${monthList.aoaUser.userName}"></td>
					<td th:if="${monthList.status eq 0}" th:text="${findcoutn1}">-</td>
					<td th:if="${monthList.status ne 0}" th:text="${'-'}">-</td>
					<td th:if="${monthList.status eq 1}" th:text="${findcoutn2}">-</td>
					<td th:if="${monthList.status ne 1}" th:text="${'-'}">-</td>
					<td th:if="${monthList.status eq 2}" th:text="${findcoutn3}">-</td>
					<td th:if="${monthList.status ne 2}" th:text="${'-'}">-</td>
					<td th:if="${monthList.type eq 3}" th:text="${findcoutn5}">-</td>
					<td th:if="${monthList.type ne 3}" th:text="${'-'}">-</td>
					<td th:if="${monthList.type eq 4}" th:text="${findcoutn6}">-</td>
					<td  th:if="${monthList.type ne 4}" th:text="${'-'}">-</td>
					<td th:if="${monthList.status eq 3}" th:text="${findcoutn4}">-</td>
					<td th:if="${monthList.status ne 3}" th:text="${'-'}">-</td>
				</tr>
			</table>
<!--分页导航-->
<div class="container">
	<div class="row text-center">
		<div class="col-md-12">
			<ul class="pagination">
				<li><a th:class="${currentPage eq 1 ? 'btn disabled' : '' }" href="javascript:;" th:href="@{/attendcemonth(page=1)}">首页</a></li>
				<li><a th:class="${currentPage eq 1 ? 'btn disabled' : '' }" href="javascript:void(0);" th:href="@{/attendcemonth(page=${currentPage}-1)}">&laquo;</a></li>

				<li th:class="${page eq currentPage} ? 'active' : ''" th:each="page:${#numbers.sequence(1,totalPage)}">
					<a href="javascript:void(0);" th:href="@{/attendcemonth(page=${page})}" th:text="${page}">1</a>
				</li>

				<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : '' }" href="javascript:void(0);" th:href="@{/attendcemonth(page=${currentPage}+1)}">&raquo;</a></li>
				<li><a th:class="${currentPage eq totalPage ? 'btn disabled' : '' }" href="#" th:href="@{/attendcemonth(page=${totalPage})}" style="border: 1px solid #ddd;">尾页</a></li>
				<li><a style="border: 0px;margin-left: 0px;">当前页<span th:text="${currentPage}"></span>/<span th:text="${totalPage}"></span>总页</a></li>
			</ul>
		</div>
	</div>
</div>
</div>
<script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/dist/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/js/index.js}"></script>
</body>
</div>
</html>